<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * User Object
 */
class UserObject
{
	private $_id;
	private $_username;
	private $_password; //hashed
	private $_group;
	
	function __construct($id = -1, $username = NULL, $password = NULL, $group = NULL)
	{
		$this->_id = $id;
		$this->_username = $username;
		$this->_password = $password;
		$this->_group = $group;
	}
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setId($id)
	{
		$this->_id = $id;
	}
	
	public function getUsername()
	{
		return quotes_to_entities($this->_username);
	}
	
	public function setUsername($username)
	{
		$this->_username = $username;
	}
	
	public function getPassword()
	{
		return $this->_password;
	}
	
	public function setPassword($password)
	{
		$this->_password = $password;
	}
	
	public function getGroup()
	{
		return $this->_group;
	}
	
	public function setGroup($group)
	{
		$this->_group = $group;
	}
}


?>